﻿using Factory.MasterData.MaterialClassifications.Dto;
using Factory.MasterData.Materials;
using Factory.MasterData.WorkshopSetups;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Factory.MasterData.MaterialClassifications
{
    /// <summary>
    /// 物料产品分类服务接口
    /// </summary>
    public interface IMaterialClassificationAppService : IApplicationService
    {
        /// <summary>
        /// 查询物料产品分类树形图
        /// </summary>
        /// <param name="product">是否是产品/物料</param>
        /// <param name="sysName">名称</param>
        /// <returns>返回结果</returns>
        Task<List<MaterialClassificationTreeDto>> GetMaterialClassificationTree(string product, string? sysName);
        /// <summary>
        /// 显示物料产品分类信息
        /// </summary>
        /// <returns>返回结果</returns>
        public List<MaterialClassificationDto> GetMaterialClassification();


        #region 裴东红

        /// <summary>
        /// 调用递归获取物料产品分类
        /// </summary>
        List<MaterialTreeDTO> GetMaterialType(string? sysName, int? enAbled);
       

        /// <summary>
        /// 递归
        /// </summary>
        Task<List<MaterialTreeDTO>> GetMaterialTypeInfo(string? sysName, int? enAbled, int pid);

        //-------------------------------------
        /// <summary>
        /// 获取所有物料分类
        /// </summary>
        List<MaterialTreeDTO> GetMaterialProductsTypeList(string? sysName);

        #endregion
    }
}
